#  # 函数
# def add(num1, num2):
#     return num1 + num2
#
#
# def sub(num1, num2):
#     return num1 - num2
# print(sub(1,2))
# print(add(1,15))
# 语法:
# # import 模块名
# import mode2ds
#
# print(mode2.age)
# print(mode2.name())
#
# # 语法:
# # import 模块名1, 模块名字2, 模块名3, ...
# import mode1, mode2
# # print(mode1.age)
# # print(mode2.age)
# # 语法:
# # import 模块名 [as 别名]
# # 单个模块
# # import module1 as my_module1
#
# import mode1 as mama1,mode2 as mama2
# print(mama1.age)
# print(mama2.age)
#  语法:
# from 模块 import 资源 [as 别名], 资源 [as 别名], ...
# from mode1 import age as age2
# # print(age2)
# from mode1 import *
# print(age)
# print(name())
import mode1
import mode1
import sys
# print(sys.myname)
from pprint import pprint
pprint(sys.modules)

